package com.iknow.data;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import com.iknow.TagResponse;
import java.util.List;

public class SubscribeTag
  implements Parcelable
{
  public static final Parcelable.Creator<SubscribeTag> CREATOR = new Parcelable.Creator()
  {
    public SubscribeTag createFromParcel()
    {
      return new SubscribeTag(paramParcel);
    }

    public SubscribeTag[] newArray()
    {
      return null;
    }
  };
  private List<String> list = null;
  private String mSubFlag;
  private String mSystemTag;
  private String mTagName;

  public SubscribeTag(Parcel paramParcel)
  {
    this.mTagName = paramParcel.readString();
    this.mSystemTag = paramParcel.readString();
    this.mSubFlag = paramParcel.readString();
  }

  public SubscribeTag(TagResponse paramTagResponse)
  {
    this.mTagName = paramTagResponse.getLableText();
    if (paramTagResponse.isSystemLable())
      this.mSystemTag = "1";
    while (true)
    {
      this.mSubFlag = "0";
      this.list = paramTagResponse.getChildList();
      return;
      this.mSystemTag = "0";
    }
  }

  public SubscribeTag(String paramString1, String paramString2)
  {
    this.mTagName = paramString1;
    this.mSystemTag = paramString2;
    this.mSubFlag = "0";
  }

  public int describeContents()
  {
    return 0;
  }

  public List<String> getChildList()
  {
    return this.list;
  }

  public String getSubscribeFlag()
  {
    return this.mSubFlag;
  }

  public String getSystemTag()
  {
    return this.mSystemTag;
  }

  public String getTagName()
  {
    return this.mTagName;
  }

  public void setSubscribeFlag(String paramString)
  {
    this.mSubFlag = paramString;
  }

  public void setSystemTag(String paramString)
  {
    this.mSystemTag = paramString;
  }

  public void setTagName(String paramString)
  {
    this.mTagName = paramString;
  }

  public void writeToParcel(Parcel paramParcel, int paramInt)
  {
    paramParcel.writeString(this.mTagName);
    paramParcel.writeString(this.mSystemTag);
    paramParcel.writeString(this.mSubFlag);
    paramParcel.writeList(this.list);
  }
}